package com.shiguiwu.springmybatis.designpattern.composite;

/**
 * @description: 目录类
 * @author: stone
 * @date: Created by 2021/2/25 22:56
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.composite
 */
public abstract class Catalog {

    public void add(Catalog catalog) {
        throw new UnsupportedOperationException("不支持获取添加操作！！");

    }

    public String getName() {
        throw new UnsupportedOperationException("不支持获取名称操作！！");
    }

    public String getType() {
        throw new UnsupportedOperationException("不支持获取类型操作！！");
    }

    public Double getSize() {
        throw new UnsupportedOperationException("不支持获取大小操作！！");
    }

    public void print() {
        throw new UnsupportedOperationException("不支持打印操作！！");
    }
}
